package com.itheima.test;

import cn.hutool.core.util.StrUtil;

public class MyStringUtils {
    public static void main(String[] args) {
        //String key = "commend_like_99_xxx";
        String key = "commend_like_{}_{}";
        //使用占位符拼接字符串 好处在于 以后不需要拼接了
        String key2 = StrUtil.format(key, 99, "xxx");
        System.out.println(key2);
    }
}
